﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TransferDetail.aspx.cs"
    Inherits="WMS6.Web.Inventory.TransferDetail" meta:resourcekey="Page" %>

<%@ Register Src="../UserControls/LotAtrributeCtrl.ascx" TagName="LotAtrributeCtrl"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>TransferDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
            setLotValue();
        }
        
        //弹出窗口选择货主
        function selectLocLopLpn() {
            var rtnValue = popModalWindow('../Inventory/InvLotLocLpnQuery.aspx?OwnerID=' + escape(document.getElementById("hdnFromOwnerID").value), 'dialogWidth=1000px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("lblMsg").style.display = "none";
                document.getElementById("lblMsg").innerText = "";
            
                var txtValue = rtnValue.split(',');       
                
                if(parseInt(txtValue[5]) == 0)
                {
                    document.getElementById("lblMsg").style.display = "block";
                    document.getElementById("lblMsg").innerText = "该记录可用数量为0,不能进行转移操作!";
                    return;
                }
                else
                {   
//                    document.getElementById("txtFromLot").value = txtValue[0].toString();       //lot
//                    document.getElementById("txtFromLoc").value = txtValue[1].toString();       //loc
//                    document.getElementById("txtFromLpn").value = txtValue[2].toString();       //lpn
                    document.getElementById("txtFromSkuID").value = txtValue[3].toString();     //skuid
//                    document.getElementById("hdnFromSkuID").value = txtValue[3].toString();     //skuid
//                    document.getElementById("txtFromSkuDescr").value = txtValue[4].toString();  //skudescr
//                    document.getElementById("txtFromQty").value = txtValue[5].toString();       //qty
//                    document.getElementById("txtFromPackID").value = txtValue[6].toString();    //packid
//                    
//                    document.getElementById("hdnOriginQty").value = txtValue[5].toString();     //qty

//                    document.getElementById("txtFromPackID").onchange();

                    //document.getElementById("txtFromSkuID").value = txtValue[3].toString();                   
                    document.getElementById("hdnFromSkuID").value = rtnValue;
                    document.getElementById("ButtonA").click(); //调用后台方法对其赋值
                }
            }
        }
        
        
       //弹出窗口选择货主To
        function selectToLocLopLpn() {
            var rtnValue = popModalWindow('../Inventory/InvLotLocLpnQuery.aspx?ownerID=' + escape(document.getElementById("hdnToOwnerID").value), 'dialogWidth=1000px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                var txtValue = rtnValue.split(',');               
                document.getElementById("txtToLot").value = txtValue[0].toString();       //lot
                document.getElementById("txtToLoc").value = txtValue[1].toString();       //loc
                document.getElementById("txtToLpn").value = txtValue[2].toString();       //lpn
                document.getElementById("txtToSkuID").value = txtValue[3].toString();     //skuid
                document.getElementById("txtToSkuDescr").value = txtValue[4].toString();  //skudescr
                document.getElementById("txtToQty").value = txtValue[5].toString();       //qty
                document.getElementById("txtToPackID").value = txtValue[6].toString();    //packid                
                document.getElementById("hdnToOriginQty").value = txtValue[5].toString();     //qty
                
                document.getElementById("txtToPackID").onchange();
                document.getElementById("txtToLot").onchange();
            }
        }
        
              //弹出窗口选择skuo
        function selectToSku() {                                                                               //这里 action参数 只是做个标示 所以 战时写为txtall
            var rtnValue = popModalWindow('../Configuration/SKUQUERY.aspx?Type=1&action=txtall&ownerID=' + escape(document.getElementById("hdnToOwnerID").value), 'dialogWidth=1000px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                var txtValue = rtnValue.split('@_@');               

                document.getElementById("txtToSkuID").value = txtValue[0].toString();     //skuid
                document.getElementById("hdnToSkuID").value = txtValue[0].toString();     //skuid
                document.getElementById("txtToSkuID").focus();
                document.getElementById("txtToSkuID").onchange();
//                document.getElementById("txtToSkuDescr").value = txtValue[2].toString();  //skudescr
//                document.getElementById("txtToPackID").value = txtValue[3].toString();    //packid                
//                document.getElementById("txtToPackID").onchange();          
            }
        }
        //货位弹出
        function selectToLoc()
        {
          var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtToLoc','dialogWidth=1000px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
               document.getElementById("txtToLoc").value = rtnValue;         
            }
        }
        
        //点击复制按钮时 把FromSkuID保存到hdnToSkuID
        function setHdnToSkuID()
        {
            document.getElementById("hdnToSkuID").value = document.getElementById("txtFromSkuID").value;
        }
        
        function setHiddenSkuID(obj)
        {
            if(obj.toString() == "from")
            {
                document.getElementById("hdnFromSkuID").value = document.getElementById("txtFromSkuID").value;
            }
            else
            {
                document.getElementById("hdnToSkuID").value = document.getElementById("txtToSkuID").value;
            }
        }
        
        //检查用户输入的原数量
        function checkOriginQty(obj)
        {
            document.getElementById("lblMsg").style.display = "none";
            if(parseInt(obj.value) >= 0)
            {
                if(parseInt(obj.value) > parseInt(document.getElementById("hdnOriginQty").value))
                {
                    document.getElementById("lblMsg").style.display = "block";
                    document.getElementById("lblMsg").innerText = "请输入小于可用数量的转移数量!";
                    obj.focus();
                    return false;
                }
            }
            else 
            {
                document.getElementById("lblMsg").style.display = "block";
                document.getElementById("lblMsg").innerText = "请输入大于0的转移数量!";
                obj.focus();
                return false;
            }
        }
        
        function setLotValue()
        {
            for(var i =1;i<11;i++)
            {
                if(document.getElementById("LotAtrributeCtrl1_ctrl"+i) != null)
                {
                    if(document.getElementById("hdnType").value == "")  //非编辑状态，从ReceiptDetail中批次属性值
                    {
                        if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value.indexOf(",") == 0)
                        {
                            if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value == "")
                            {
                                document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i+"1").value;
                            }
                        }
                    }
                    else  //编辑状态 取批次属性的默认值
                    {
                        if(document.getElementById("hdnLot"+i+"1").value.indexOf(",") > 0)
                        {
                            document.getElementById("hdnLot"+i+"1").value = "";
                        }
                        document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i+"1").value;
                    }
                }
                
                if(document.getElementById("LotAtrributeCtrl2_ctrl"+i) != null)
                {
                    if(document.getElementById("hdnType").value == "")  //非编辑状态，从ReceiptDetail中批次属性值
                    {
                        if(document.getElementById("LotAtrributeCtrl2_ctrl"+i).value.indexOf(",") == 0)
                        {
                            if(document.getElementById("LotAtrributeCtrl2_ctrl"+i).value == "")
                            {
                                document.getElementById("LotAtrributeCtrl2_ctrl"+i).value = document.getElementById("hdnLot"+i+"2").value;
                            }
                        }
                    }
                    else  //编辑状态 取批次属性的默认值
                    {
                        if(document.getElementById("hdnLot"+i+"2").value.indexOf(",") > 0)
                        {
                            document.getElementById("hdnLot"+i+"2").value = "";
                        }
                        document.getElementById("LotAtrributeCtrl2_ctrl"+i).value = document.getElementById("hdnLot"+i+"2").value;
                    }
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtProduct") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtProduct").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtProduct").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnProductDate").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnProductDate").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                }
            }
            if(document.getElementById("LotAtrributeCtrl2_txtProduct") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl2_txtProduct").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl2_txtProduct").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl2_txtProduct").value = document.getElementById("hdnProductDate2").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnProductDate2").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnProductDate2").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl2_txtProduct").value = document.getElementById("hdnProductDate2").value;
                }
            }
            
            if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExpiryDate").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExpiryDate").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                }
            }
            if(document.getElementById("LotAtrributeCtrl2_txtExpiryDate") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl2_txtExpiryDate").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl2_txtExpiryDate").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl2_txtExpiryDate").value = document.getElementById("hdnExpiryDate2").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExpiryDate2").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExpiryDate2").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl2_txtExpiryDate").value = document.getElementById("hdnExpiryDate2").value;
                }
            }
            
            if(document.getElementById("LotAtrributeCtrl1_txtExternalLot") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExternal").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExternal").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                }
            }
            if(document.getElementById("LotAtrributeCtrl2_txtExternalLot") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl2_txtExternalLot").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl2_txtExternalLot").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl2_txtExternalLot").value = document.getElementById("hdnExternal2").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExternal2").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExternal2").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl2_txtExternalLot").value = document.getElementById("hdnExternal2").value;
                }
            }
            
            //来源供应商
            document.getElementById("txtFromVendorID").value = document.getElementById("hdnVendorID").value;
            
            //目标供应商
            document.getElementById("txtToVendorID").value = document.getElementById("hdnVendorID2").value;
        }
        
    </script>

</head>
<body>
    <form id="F5063" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblTransferDetail" runat="server" CssClass="label_header" 
                            Text="库存转移明细" meta:resourcekey="lblTransferDetail"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" AccessKey="c"
                            OnClick="btnCancel_Click" ValidationGroup="aaa"  />
                    </td>
                    <%--                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="删除" 
                            AccessKey="c" onclick="btnDelete_Click" /></td>--%>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>" AccessKey="c"
                            OnClick="btnCopy_Click" ValidationGroup="aaa" 
                            OnClientClick="setHdnToSkuID()" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" AccessKey="s"
                            OnClick="btnSave_Click"  />
                    </td>
                    <td>
                    <a ID="ButtonA" onserverclick="ButtonA_Click" runat="server"></a>
                        
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">库存转移</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>--%>
                <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblLineID" runat="server" CssClass="label" Text="行号" 
                                meta:resourcekey="lblLineID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" Enabled="False" 
                                meta:resourcekey="txtLineID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtStatus" runat="server" CssClass="textbox" Enabled="False" 
                                meta:resourcekey="txtStatus"></asp:TextBox>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFrom" runat="server" CssClass="label" Text="原" 
                                meta:resourcekey="lblFrom"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTo" runat="server" CssClass="label" Text="至" 
                                meta:resourcekey="lblTo"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromSkuID" runat="server" CssClass="label" Text="货品代码" 
                                meta:resourcekey="lblFromSkuID"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToSkuID" runat="server" CssClass="label" Text="货品代码" 
                                meta:resourcekey="lblToSkuID"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromSkuID" runat="server" CssClass="textbox" OnTextChanged="txtFromSkuID_TextChanged"
                               AutoPostBack="True" Enabled="False" 
                                meta:resourcekey="txtFromSkuID" ></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" class="img" onclick="selectLocLopLpn();" id="img1" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToSkuID" runat="server" CssClass="textbox"  onkeyUp="SearchDataAjax(this,'SKU','hdnToOwnerID');return false;"    AutoPostBack="True"  OnTextChanged="txtToSkuID_TextChanged"                            
                                meta:resourcekey="txtToSkuID"></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" class="img" onclick="selectToSku();" id="img2" />
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromSkuDescr" runat="server" CssClass="label" Text="货品描述" 
                                meta:resourcekey="lblFromSkuDescr"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToSkuDescr" runat="server" CssClass="label" Text="货品描述" 
                                meta:resourcekey="lblToSkuDescr"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromSkuDescr" runat="server" CssClass="textbox"  
                                Enabled="False" meta:resourcekey="txtFromSkuDescr" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToSkuDescr" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToSkuDescr"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromVendorID" runat="server" CssClass="label" Text="供应商代码" 
                                meta:resourcekey="lblFromVendorID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToVendorID" runat="server" CssClass="label" Text="供应商代码" 
                                meta:resourcekey="lblToVendorID"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromVendorID" runat="server" CssClass="textbox"  
                                Enabled="False" meta:resourcekey="txtFromVendorID" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToVendorID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToVendorID"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromLoc" runat="server" CssClass="label" Text="货位" 
                                meta:resourcekey="lblFromLoc"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToLoc" runat="server" CssClass="label" Text="货位" 
                                meta:resourcekey="lblToLoc"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromLoc" runat="server" CssClass="textbox"  Enabled="False" 
                                meta:resourcekey="txtFromLoc" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToLoc" runat="server" CssClass="textbox"  onkeyUp="SearchDataAjax(this,'LOC','txtToLoc');return false;"  onblur="LoseFocus();return false"
                                meta:resourcekey="txtToLoc"></asp:TextBox><img src="../Images/icon_find.gif"
                                alt="select one item" class="img" onclick="selectToLoc();" id="img3" />
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromLot" runat="server" CssClass="label" Text="批次号" 
                                meta:resourcekey="lblFromLot"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToLot" runat="server" CssClass="label" Text="批次号" 
                                meta:resourcekey="lblToLot"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromLot" runat="server" CssClass="textbox"  Enabled="False" 
                                meta:resourcekey="txtFromLot" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToLot" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToLot"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromLpn" runat="server" CssClass="label" Text="LPN" 
                                meta:resourcekey="lblFromLpn"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToLpn" runat="server" CssClass="label" Text="LPN" 
                                meta:resourcekey="lblToLpn"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromLpn" runat="server" CssClass="textbox"  Enabled="False" 
                                meta:resourcekey="txtFromLpn" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToLpn" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToLpn"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromPackID" runat="server" CssClass="label" Text="包装代码" 
                                meta:resourcekey="lblFromPackID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToPackID" runat="server" CssClass="label" Text="包装代码" 
                                meta:resourcekey="lblToPackID"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromPackID" runat="server"  Enabled="False"  
                                CssClass="textbox" OnTextChanged="txtFromPackID_OnTextChanged"
                                AutoPostBack="True" meta:resourcekey="txtFromPackID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToPackID" runat="server" CssClass="textbox" OnTextChanged="txtToPackID_OnTextChanged"
                                AutoPostBack="True" meta:resourcekey="txtToPackID"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromUomID" runat="server" CssClass="label" Text="计量单位" 
                                meta:resourcekey="lblFromUomID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToUomID" runat="server" CssClass="label" Text="计量单位" 
                                meta:resourcekey="lblToUomID"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlFromUomID"  Enabled="False"  runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="ddlFromUomID">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlToUomID" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlToUomID">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromQty" runat="server" CssClass="label" Text="数量" 
                                meta:resourcekey="lblFromQty"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToQty" runat="server" CssClass="label" Text="数量" 
                                meta:resourcekey="lblToQty"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromQty" runat="server" CssClass="textbox"  
                                ontextchanged="txtFromQty_TextChanged" AutoPostBack="True" 
                                meta:resourcekey="txtFromQty" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToQty" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToQty"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr style="height: 20px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <%--<tr>
                        <td width="180px">
                            <asp:Label ID="lblFromExternalLot" runat="server" CssClass="label" Text="外部批号" 
                                meta:resourcekey="lblFromExternalLot"></asp:Label>
                                &nbsp;
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToExternalLot" runat="server" CssClass="label" Text="外部批号" 
                                meta:resourcekey="lblToExternalLot"></asp:Label>
                                &nbsp;
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromExternalLot" runat="server" CssClass="textbox"  
                                Enabled="False" meta:resourcekey="txtFromExternalLot" ></asp:TextBox>
                                &nbsp;
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToExternalLot" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToExternalLot"></asp:TextBox>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>--%>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblFromReceiptDate" runat="server" CssClass="label" Text="入库日期"  
                                Enabled="False" meta:resourcekey="lblFromReceiptDate" ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblToReceiptDate" runat="server" CssClass="label" Text="入库日期" 
                                meta:resourcekey="lblToReceiptDate"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtFromReceiptDate" runat="server" CssClass="textbox"  
                                Enabled="False" AutoPostBack="True" 
                                meta:resourcekey="txtFromReceiptDate" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtToReceiptDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtToReceiptDate"></asp:TextBox><img
                                alt="请选择日期" class="img" onclick="setday(this,txtToReceiptDate)" src="../Images/calendar.gif" />
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr style="height: 20px;">
                        <td>
                            <uc1:LotAtrributeCtrl ID="LotAtrributeCtrl1" runat="server" Enabled="false" />
                        </td>
                        <td>
                            <uc1:LotAtrributeCtrl ID="LotAtrributeCtrl2" runat="server"  ShelfLifeIndicator="true" />
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height:10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
                    <input type="hidden" id="hdnFrom" runat="server" />
                    <input type="hidden" id="hdnTransferID" runat="server" />
                    <input type="hidden" id="hdnFromOwnerID" runat="server" />
                    <input type="hidden" id="hdnToOwnerID" runat="server" />
                    <input type="hidden" id="hdnFromSkuID" runat="server" />
                    <input type="hidden" id="hdnToSkuID" runat="server" />
                    <input type="hidden" id="hdnOriginQty" runat="server" />
                    <input type="hidden" id="hdnToOriginQty" runat="server" />
                    <input type="hidden" id="hdnType" runat="server" />
                    <input type="hidden" id="hdnDataFormat" runat="server" />
                    <input type="hidden" id="hdncalendarFlag" runat="server" />
                    <asp:HiddenField ID="hdnLot11" runat="server" />
                    <asp:HiddenField ID="hdnLot12" runat="server" />
                    <asp:HiddenField ID="hdnLot21" runat="server" />
                    <asp:HiddenField ID="hdnLot22" runat="server" />
                    <asp:HiddenField ID="hdnLot31" runat="server" />
                    <asp:HiddenField ID="hdnLot32" runat="server" />
                    <asp:HiddenField ID="hdnLot41" runat="server" />
                    <asp:HiddenField ID="hdnLot42" runat="server" />
                    <asp:HiddenField ID="hdnLot51" runat="server" />
                    <asp:HiddenField ID="hdnLot52" runat="server" />
                    <asp:HiddenField ID="hdnLot61" runat="server" />
                    <asp:HiddenField ID="hdnLot62" runat="server" />
                    <asp:HiddenField ID="hdnLot71" runat="server" />
                    <asp:HiddenField ID="hdnLot72" runat="server" />
                    <asp:HiddenField ID="hdnLot81" runat="server" />
                    <asp:HiddenField ID="hdnLot82" runat="server" />
                    <asp:HiddenField ID="hdnLot91" runat="server" />
                    <asp:HiddenField ID="hdnLot92" runat="server" />
                    <asp:HiddenField ID="hdnLot101" runat="server" />
                    <asp:HiddenField ID="hdnLot102" runat="server" />
                    <asp:HiddenField ID="hdnProductDate" runat="server" />
                    <asp:HiddenField ID="hdnExpiryDate" runat="server" />
                    <asp:HiddenField ID="hdnProductDate2" runat="server" />
                    <asp:HiddenField ID="hdnExpiryDate2" runat="server" />
                    <asp:HiddenField ID="hdnExternal" runat="server" />
                    <asp:HiddenField ID="hdnExternal2" runat="server" />
                    <asp:HiddenField ID="hdnVendorID" runat="server" />
                    <asp:HiddenField ID="hdnVendorID2" runat="server" />
                <%--</ContentTemplate>
                </asp:UpdatePanel>--%>
                
            </div>
        </div>
    </div>
    
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>